package com.iweb.commodity.model;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author jack
 * @since 2020-05-10
 */
@TableName("e_commodity")
public class Commodity extends Model<Commodity> {

    private static final long serialVersionUID = 1L;

    @TableId
    private String commoId;

    private String commoName;

    private Double commoPrice;

    private String commoDesc;

    private Integer commoCount;

    public String getCommoId() {
        return commoId;
    }

    public void setCommoId(String commoId) {
        this.commoId = commoId;
    }

    public String getCommoName() {
        return commoName;
    }

    public void setCommoName(String commoName) {
        this.commoName = commoName;
    }

    public Double getCommoPrice() {
        return commoPrice;
    }

    public void setCommoPrice(Double commoPrice) {
        this.commoPrice = commoPrice;
    }

    public String getCommoDesc() {
        return commoDesc;
    }

    public void setCommoDesc(String commoDesc) {
        this.commoDesc = commoDesc;
    }

    public Integer getCommoCount() {
        return commoCount;
    }

    public void setCommoCount(Integer commoCount) {
        this.commoCount = commoCount;
    }

    @Override
    protected Serializable pkVal() {
        return this.commoId;
    }

    @Override
    public String toString() {
        return "Commodity{" +
                "commoId=" + commoId +
                ", commoName=" + commoName +
                ", commoPrice=" + commoPrice +
                ", commoDesc=" + commoDesc +
                ", commoCount=" + commoCount +
                "}";
    }
}
